import request from '@/sheep/request';


export default {
  getUnreadMessage: (data) =>
    request({
      url: '/api/book_list/index',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateBook: (data) =>
    request({
      url: '/api/book_list/updateBook',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getBookSysImageList: (data) =>
    request({
      url: '/api/book_list/getBookSysImageList',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getCateList: (data) =>
    request({
      url: '/api/book_list/getCateList',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addCate: (data) =>
    request({
      url: '/api/book_list/addCate',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateCate: (data) =>
    request({
      url: '/api/book_list/updateCate',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  deleteCate: (data) =>
    request({
      url: '/api/book_list/deleteCate',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateCateWeigh: (data) =>
    request({
      url: '/api/book_list/updateCateWeigh',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  index: (data) =>
    request({
      url: '/api/book_list/index',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getBookPage: (data) =>
    request({
      url: '/api/book_list/getBookPage',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  uploadImage: (data) =>
    request({
      url: '/api/book_list/uploadImage',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getBookContent: (data) =>
    request({
      url: '/api/book_list/getBookContent',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  updateContent: (data) =>
    request({
      url: '/api/book_list/updateContent',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  deleteImage: (data) =>
    request({
      url: '/api/book_list/deleteImage',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  addImageCache: (data) =>
    request({
      url: '/api/book_list/addImageCache',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getDefaultCate: (data) =>
    request({
      url: '/api/book_list/getDefaultCate',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  createPdf: (data) =>
    request({
      url: '/api/book_list/createPdf',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
};